<div id="form" align="center">
	<form action="index.php?module=listuser&action=list" method="post">
		<table border="1">
			<tr>
				<td>STT</td>
				<td>Username</td>
				<td>Level</td>
				<td>Delete</td>
				<td>Edit</td>
			</tr>
				<?php
					$stt = 1;
					foreach($data as $row){
						echo "<tr>";
							echo "<td>".$stt++."</td>";
							echo "<td>".$row["username"]."</td>";
								if($row["level"] == 2){
									echo "<td><font color='red'>Admin</font></td>";
								}else{
									echo "<td>Member</td>";
								}
						echo "<td><a href='index.php?module=listuser&action=del&id=$row[user_id]'>Del</a></td>";
						echo "<td><a href='index.php?module=listuser&action=edit&id=$row[user_id]'>Edit</a></td>";
						echo "</tr>";
					}
				?>
			<tr>
				<td colspan="5"><a href="index.php?module=listuser&action=add">Add</a></td>
			</tr>
		</table>
	</form>
</div>